﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace Estimate
{
    public partial class reportInvoiceWriteOff : DevExpress.XtraReports.UI.XtraReport
    {
        public reportInvoiceWriteOff()
        {
            InitializeComponent();
        }
        int cnt = 0;
        private void xrTableCell2_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            cnt++;
            DevExpress.XtraReports.UI.XRLabel label = (DevExpress.XtraReports.UI.XRLabel)sender;
            label.Text = cnt.ToString();
        }
        public EstimateDataContext context;
       
        private void xrLabeltotal_AfterPrint(object sender, EventArgs e)
        {
         
                
      
     
        
        }

        private void xrLabelSumTotal_AfterPrint(object sender, EventArgs e)
        {
             
        }

        private void xrLabelSumTotal_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
           
        }

        private void xrLabeltotal_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            //xrLabeltotal.Text = context.sfMoneyToWords(Convert.ToDecimal(xrLabelSumTotal.Text));
        }

    }
}
